package org.wuhong.mapper;


import com.wuhong.entity.Folder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FolderMapper {
    int deleteByPrimaryKey(String id);

    int insert(Folder record);

    int insertSelective(Folder record);

    Folder selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Folder record);

    int updateByPrimaryKey(Folder record);

    List<Folder> getLevelFolders(@Param("userId") String userId, @Param("parentId")String parentId,@Param("level")int level);

    List<Folder> getAllFolders(@Param("userId") String userId, @Param("parentId")String parentId);

    List<Folder> getAllFoldersChrild(String id);


}